home *** CD-ROM | disk | FTP | other *** search
- NOPAUSE.CPP and NOPAUSE2.CPP
- By Thomas Astin CIS: 73407,3427 Prodigy: RNVN08A
- (C) Copyright 1991. All rights reserved.
-
- Introduction
- ------------
- This code demonstrates how to "disable" the pause/lock feature provided on
- most 286/386 class machines supporting a 101/102 keyboard. When Pause is
- pressed the BIOS loops until any other key is pressed thereby allowing the
- user to suspend any program currently running.
-
- NOPAUSE and NOPAUSE each demonstrate a way to disable the Pause feature. The
- word "disabled" is used loosely because the Pause key is not actually
- disabled. Either the Pause key scan codes are kept from the BIOS or the BIOS
- data area containing a Pause/Lock bit is constantly cleared. Due to limited
- testing on multiple machines it is hard to say if this code will behave
- correctly on all machines. Please see notes in source code for further
- information.
-
- Method #1 - NOPAUSE.CPP
- -----------------------
- NOPAUSE demonstrates by way of intercepting keyboard hardware int 0x09.
-
-
- Method #1 - NOPAUSE.CPP
- -----------------------
- NOPAUSE2 demonstrates by way of intercepting clock tick interrupt 0x1C. The
- code in the intercepting handler clears a Pause/Lock bit located in the BIOS
- data area. NOTE: This worked on the testing machine because it was known that
- the Pause/Lock loop in the testing machine's bios tested the Pause/Lock bit
- and droped out of the loop if the bit was clear. This may not work the same on
- other machines.
-
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- Public (software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. PsL cannot debug pro-
- programs over the telephone, though we can answer questions.
-
- Disks in the PsL are updated monthly, so if you did not get
- this disk directly from the PsL, you should be aware that the
- files in this set may no longer be the current versions. Also,
- if you got this disk from another vendor and are having prob-
- lems, be aware that some files may have become corrupted or
- lost by that vendor. Get a current, working disk from PsL.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 3,000+ disks in the library, call or write
-
- Public (software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
-
- 1-800-2424-PSL
- MC/Visa/AmEx/Discover
-
- Outside of U.S. or in Texas
- or for general information,
- Call 1-713-524-6394
-
- PsL also has an outstanding
- catalog for the Macintosh.
-